<template>
  <div id="app">
    <app-header :appinfo="appinfo" :userinfo="userinfo"></app-header>
    <router-view />
    <app-footer :appinfo="appinfo"></app-footer>
    <app-sidebar :appinfo="appinfo"></app-sidebar>
  </div>
</template>
<script>
import AppHeader from "@/components/common/Header.vue";
import AppFooter from "@/components/common/Footer.vue";
import AppSidebar from "@/components/common/Sidebar.vue";
export default {
  name: "App",
  components: {
    AppHeader,
    AppFooter,
    AppSidebar
  },
  data() {
    return {
      appinfo: {},
      userinfo: {}
    };
  },
  created() {
    var that = this;
    that.$axios.get(that.$http.apiurl("ginfo") + "&op=appinfo").then(res => {
      that.appinfo = res.data;
      that.$store.commit("sappinfo", res.data);
    });

    if (localStorage.getItem("user_info")) {
      that.userinfo = JSON.parse(localStorage.getItem("user_info"));
    }
  },
  methods: {}
};
</script>
<style lang="scss">
.wordcut {
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  word-wrap: normal;
}
.w {
  width: 1200px;
  margin: 0 auto;
}
.router-link-active {
  text-decoration: none;
}
.more {
  text-align: center;
  margin: 30px 0;
}
.more-btn {
  width: 260px;
  height: 40px;
  border: 1px solid #0c8;
  line-height: 40px;
  text-align: center;
  background-color: #fff;
  color: #0c8;
}
.more-btn:hover {
  background-color: #0c8;
  color: #fff;
}
.grayline {
  width: 35px;
  height: 3px;
  background-color: #e6e6e6;
  display: block;
  margin: 20px 0;
}

.bottom {
  display: flex;
  margin-top: 10px;

  .btn {
    height: 50px;
    border-radius: 5px;
    font-size: 18px;
    text-align: center;
    line-height: 50px;
    padding: 0 30px;
  }

  .call {
    background: linear-gradient(90deg, #ff9fa9, #ec345b);
    color: #fff;
  }

  .postjl {
    background: linear-gradient(90deg, #69b7fa, #3890f4);
    color: #fff;
    margin-left: 20px;
  }
}
// 弹窗
.sys-tips {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 1009;
  background-color: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;

  .inner {
    text-align: center;
    background-color: #fff;
    border-radius: 20px;
    z-index: 1006;
    box-shadow: 0px 0px 16px rgba(0, 0, 0, 0.2);
    width: 34%;
    padding-bottom: 50rpx;
    position: relative;

    .status {
      text-align: center;
      position: absolute;
      top: -60px;
      width: 100%;
      display: flex;
      justify-content: center;

      .status-img {
        width: 160px;
        height: 160px;
        display: block;
        border-radius: 50%;
        border: 10px solid #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: #fff;

        img {
          width: 100px;
          height: 100px;
        }
      }
    }

    .bd {
      padding: 10px 30px;

      .text1 {
        font-size: 28px;
        font-weight: 600;
        margin-top: 100px;
      }

      .text2 {
        font-size: 18px;
        margin-top: 20px;
        color: #aaa;
      }

      .btn-group {
        width: 100%;
        height: 50px;
        background-color: #0c8;
        color: #fff;
        line-height: 50px;
        margin: 0 auto;
        border-radius: 50px;
        margin-top: 26px;

        .sbtn {
          font-size: 22px;
          color: #fff;
          letter-spacing: 6px;
        }

        .sbtn1 {
          font-size: 22px;
          color: #fff;
          letter-spacing: 6px;
          background: #0c8;
          width: 100%;
          margin-bottom: 10px;
          height: 50px;
          line-height: 50px;
          border-radius: 25px;
        }

		.sbtn2 {
          font-size: 22px;
          color: #000;
          letter-spacing: 6px;
          background: #ccc;
          width: 100%;
          margin-bottom: 10px;
          height: 50px;
          line-height: 50px;
          border-radius: 25px;
        }
      }
    }

    .close {
      position: absolute;
      right: 10rpx;
      top: 10rpx;
      width: 20rpx;
      height: 20rpx;

      img {
        width: 100%;
        height: 100%;
      }
    }
  }
}
button {
  margin-top: 0;
  margin-bottom: 0;
  padding: 0;
  border-radius: 0;
  line-height: 1.2;
  background: none;
  font-size: 14px;
  border: none;
}

button::after {
  display: none;
}
ul li {
  list-style: none;
}
.ivu-input-search {
          background: #0c8 !important;
          border-color: #0c8 !important;
        }
</style>
